package com.ym.shardingsphere.dao;

import com.ym.shardingsphere.entity.TxOrder;
import com.ym.shardingsphere.vo.TxOrderVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * <p>
 * 订单分库分表演示 Mapper 接口
 * </p>
 *
 * @author 晨曦
 * @since 2020-12-21
 */
@Repository
public interface TxOrderMapper{

   int deleteByPrimaryKey(String id);

   int deleteByIdList(@Param("list") List<String> idList);

   int insert(TxOrder record);

   int insertBatchs(List<TxOrder> list);

   int insertSelective(TxOrder record);

   int updateByPrimaryKeySelective(TxOrder record);

   int updateByPrimaryKey(TxOrder record);

   int updateByPrimaryKeySelectiveBatchs(List<TxOrder> recordList);

   TxOrder selectByPrimaryKey(String id);

   List<TxOrder> getTxOrderListByPage(TxOrderVO parmVO);

   List<TxOrder> getTxOrderListByParm(TxOrderVO parmVO);

}
